﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddTelRecord.aspx.cs" Inherits="YWTSSys.Web.MachineSys.YWTSWeb.yw.AddTelRecord" %>
<%--添加电话记录。可传入ParTelId表示是回访--%>
<h2 class="contentTitle">
<%= ParTelId==0?"新建通话":"回访"%>

</h2>
<div class="pageContent">
	<form method="post" action="YWTSWeb/yw/AddTelRecord.aspx?ajaxmethod=add&CustomerId=<%=CustomerId %>&ParTelId=<%=ParTelId %>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent AddTelRecordpageFormContent" layoutH="360"> 
            <table class="AddTelRecordDT" style=" border:0px; line-height:21px;" width="100%">
                <tr>
                    <td>
                        <input type="text" value="" readonly id="AddTelRecord_通话时间" name="通话时间" class="required"/>
                    </td>
                    <td>
                        <a id="AddTelRecord_starttel" class="button"  href="#" onclick="$('#AddTelRecord_通话时间').val(new Date().toLocaleString().replace('年','-').replace('月','-').replace('日',''));$('#AddTelRecord_starttel').hide()">
                            <span>开始通话</span>
                        </a>
                    </td>
                </tr>

                <tr>
                    <td>
                        <input type="text" value="" readonly id="AddTelRecord_结束通话" name="结束通话" class="required" />
                    </td>
                    <td>
                        <a id="AddTelRecord_endtel" readonly class="button"  href="#" onclick="$('#AddTelRecord_结束通话').val(new Date().toLocaleString().replace('年','-').replace('月','-').replace('日',''))">
                            <span>结束通话</span>
                        </a>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">通话内容：</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <textarea rows="6" cols="35" name="通话内容" class="textInput required"></textarea>
                    </td>
                </tr>
                <tr>
                    <td >
                        <label><input type="checkbox" name="是否需回访" value="true" /> 是否需回访</label>
                    
                    </td>
                    <td>
                        <table>
                            <tr>
                                <td>回访于</td>
                                <td><input type="text" value="0"  class="inputInteger" size="2"  name="需回访天数" /></td>
                                <td>天后</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                
            </table>            
       </div>
		<div class="formBar">
			<ul>
				
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
<style>
    .AddTelRecordDT{ width:100%; border:0px;}
    .AddTelRecordDT td{ height:21px; line-height:21px;}
    .AddTelRecordpageFormContent fieldset{ padding:4px; margin-bottom:5px;}
</style>
